package com.lk.template.controller;

import com.lk.template.exception.R;
import com.lk.template.service.TestService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lk
 * @date 2024/4/17 13:53
 */
@RestController
@RequestMapping("/test")
@Tag(name = "测试")
public class TestController{

  @Autowired
  private TestService testService;

  @GetMapping("/test")
  @Operation(summary = "test")
  public R<String> test(){
     return R.ok("测试");
  }

}
